package red.mlz.appconsumer.controller.homepage;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import red.mlz.appconsumer.domain.homepage.HomePageVo;
import red.mlz.appconsumer.service.HomePageService;
import red.mlz.common.utils.Response;

@RestController
@Slf4j
public class HomePageController {

    @Autowired
    private HomePageService homePageService;

    @RequestMapping("/homepage")
    private Response getHomePage() {
        HomePageVo homePageVo = homePageService.getHomePageData();
        return new Response(1001, homePageVo);
    }
}
